const db = require('../../db/index')

exports.download = (req, res) =>{
	
	const sql = `select file_url from ev_files where idev_files	>=? and idev_files <?`

	db.query(sql, [(req.query.page-1)*30,req.query.page*30],(err, results)=>{
		if(err)
			return res.cc(err)

		res.send({
			status: 0,
			message:'获取文章分类成功!',
			data:results 
		})
	})
}
